Xbasic

A5_DownLoadFile Function

Syntax

Result_Flag as L = a5_downloadfile(C source_file ,C target_file )

Arguments

Result_Flag

.T. = the download was successful .F. = the download was not successful

source_file

The URL of a page to download.

target_file

The filename of the text file that will receive the downloaded page.

Description

Downloads a file specified by a URL and saves it on the user's machine.

Discussion

The A5_DownLoadFile() function downloads a file specified by a URL and saves it on the user's computer.

Example

? a5_downloadfile("www.google.com", "c:\google.txt")
= .T.

Limitations

Desktop applications only.